package org.grobben.sqmconverter.logic;

import java.math.*;

public class Logic {
    
/*
 *  This class converts the SQM value to NELM.
 * 
 * @author N. Grobben
 * @version 0.1
 */
    	public double A; 
        public double Bo; 
	public double Bi; //= parseFloat(org.grobben.sqmconverter.ui.swing.input.value);
    
    public void PhotogB2NELMStellar() {
        Bi = 21.8;    
	A = 4.316 - (Bi / 5);
        A = Math.pow(10,A) + 1;
	A = 5 * Math.log10(A);

	Bo = 7.93 - A;
//	document.form2.answer.value = B;
        
        System.out.println("Your Naked Eye Limmited Magnitude= " + (Bo));
    }
    	public static void main(String[] args) {
		new Logic().PhotogB2NELMStellar();
	}
}
